{
- "name": "gnomeos-3.4",
+ "name-prefix": "gnomeos-3.4",
"architectures": ["i686"],
- "base": "yocto/gnomeos-3.4",
+ "base-prefix": "bases/yocto/gnomeos-3.4",
"config-opts": ["--disable-static", "--disable-silent-rules"],
return name[:-len('-runtime')] + '-devel'
return name
-def manifest_base(manifest):
- return 'bases/%s' % (manifest['base'],)
-
def manifest_buildname(manifest, component):
return 'artifacts/%s/%s/%s' % (manifest_target(manifest),
component['name'],
return True
def _compose(self, components):
- base_ref = 'bases/%s' % (self.manifest['base'], )
+ base_ref = self.manifest['base']
# HACK
manifest_build_name = self.manifest['name']
index = components.index(component)
dependencies = components[:index]
- base = 'bases/%s' % (self.manifest['base'], )
+ base = self.manifest['base']
checkout_trees = [(base, '/')]
for dep in dependencies:
buildname = buildutil.manifest_buildname(self.manifest, dep)
else:
snapshot['components'] = devel_components
- snapshot['name'] = '%s-%s-%s' % (arch_manifest['name'], architecture, component_type)
- snapshot_base = snapshot['base']
- snapshot['base'] = snapshot_base + '-%s-%s' % (architecture, component_type)
+ name_prefix = snapshot['name-prefix']
+ del snapshot['name-prefix']
+ base_prefix = snapshot['base-prefix']
+ del snapshot['base-prefix']
+
+ snapshot['name'] = '%s-%s-%s' % (name_prefix, architecture, component_type)
+ snapshot['base'] = '%s-%s-%s' % (base_prefix, architecture, component_type)
out_snapshot = os.path.join(self.workdir, snapshot['name'] + '.snapshot')
f = open(out_snapshot, 'w')
json.dump(snapshot, f, indent=4, sort_keys=True)